replace tlbflush check and operation with inline functions
authorDongli Zhang <dongli.zhang@oracle.com>
Tue, 20 Sep 2016 14:13:51 +0000 (16:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Sep 2016 14:13:51 +0000 (16:13 +0200)
commit80943aa40e30bcba24f52eff156c29d9d57a2e53
tree556cc3ce5a72cf1d4a208ffabd6df3f090902ca8
parent8fec44f23cf59d9be02df055b40e9f9536a0d570
replace tlbflush check and operation with inline functions

This patch cleaned up the code by replacing complicated tlbflush check and
operation with inline functions. We should use those inline functions to
avoid the complicated tlbflush check and tlbflush operations when
implementing TODOs left in commit a902c12ee45fc9389eb8fe54eeddaf267a555c58
(More efficient TLB-flush filtering in alloc_heap_pages()).

"#include <asm/flushtlb.h>" is removed from xen/arch/x86/acpi/suspend.c to
avoid the compiling error after we include "<asm/flushtlb.h>" to
xen/include/xen/mm.h.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/arch/x86/acpi/suspend.c
xen/common/page_alloc.c
xen/include/xen/mm.h